import java.util.Scanner;

public class ch07 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] s = {13,6,75,22,11,8,5,7,1};
        System.out.println("请输入两个需要交换的元素位置:");
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c;
        c = s[a-1];
        s[a-1] = s[b-1];
        s[b-1] = c;
        for (int i = 0; i < s.length; i++) {
            System.out.println(s[i]);
        }
    }
}
